package cn.wolfcode.wolf2w.query;

import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class TravelQueryObject extends QueryObject{

    private String destId;
    private int state = -1;
    private int dayType = -1;
    private int perExpendType = -1;
    private int orderType = 1;

    public TravelCondition getDay(){
        //根据qo中的dayType拿到静态Map中的TravelCondition
        return TravelCondition.DAY_MAP.get(dayType);
    }
    public TravelCondition getPerExpend(){
        return TravelCondition.PEREXPEND_MAP.get(perExpendType);
    }
}
